import request from "../request"

// 清空搜索历史
function searchClear(data){
    return request({
        method:'POST',
        url:"/search/clearhistoryAction",
        data
    })
}

// 搜索的关键词添加到数据库
function addHistoryAction(data){
    return request({
        method:'post',
        url:"/search/addhistoryaction",
        data
    })
}

// 搜索提示接口
function getSearchHelper(data){
    return request({
        url:"/search/helperaction",
        data
    })
}

// 关键词和搜索历史接口
function getKeywordsAndHistory(data){
    return request({
        url:"/search/indexaction",
        data
    })
}

export {
    searchClear,
    addHistoryAction,
    getSearchHelper,
    getKeywordsAndHistory
}
